﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Dungeon_Dive
{
    public class Log
    {
        private StreamWriter logfile;

        public Log(String filename)
        {
            logfile = new StreamWriter(filename);
            logfile.AutoFlush = true;
            logfile.WriteLine("Logfile begun " + DateTime.Now.ToString());
        }

        public void Write(String str)
        {
            logfile.WriteLine(str);
        }
    }
}
